Rescue StandardError rather than Exception

Akinori MUSHA 9 years ago
parent
commit
e18d4e7c4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/agents/shell_command_agent.rb

+ 1 - 1
app/models/agents/shell_command_agent.rb

@@ -120,7 +120,7 @@ module Agents
120 120
 
121 121
         _, status = Process.wait2(pid)
122 122
         exit_status = status.exitstatus
123
-      rescue Exception => e
123
+      rescue => e
124 124
         errors = e.to_s
125 125
         result = ''.freeze
126 126
         exit_status = nil